3.1.29 \(\int \frac {1+a x}{x^4 \sqrt {a x} \sqrt {1-a x}} \, dx\)

Optimal. Leaf size=97 \[ -\frac {208 a^3 \sqrt {1-a x}}{105 \sqrt {a x}}-\frac {104 a^3 \sqrt {1-a x}}{105 (a x)^{3/2}}-\frac {26 a^3 \sqrt {1-a x}}{35 (a x)^{5/2}}-\frac {2 a^3 \sqrt {1-a x}}{7 (a x)^{7/2}} \]

________________________________________________________________________________________

Rubi [A]  time = 0.03, antiderivative size = 97, normalized size of antiderivative = 1.00, number of steps used = 5, number of rules used = 4, integrand size = 26, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.154, Rules used = {16, 78, 45, 37} \begin {gather*} -\frac {208 a^3 \sqrt {1-a x}}{105 \sqrt {a x}}-\frac {104 a^3 \sqrt {1-a x}}{105 (a x)^{3/2}}-\frac {26 a^3 \sqrt {1-a x}}{35 (a x)^{5/2}}-\frac {2 a^3 \sqrt {1-a x}}{7 (a x)^{7/2}} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[(1 + a*x)/(x^4*Sqrt[a*x]*Sqrt[1 - a*x]),x]

[Out]

(-2*a^3*Sqrt[1 - a*x])/(7*(a*x)^(7/2)) - (26*a^3*Sqrt[1 - a*x])/(35*(a*x)^(5/2)) - (104*a^3*Sqrt[1 - a*x])/(10
5*(a*x)^(3/2)) - (208*a^3*Sqrt[1 - a*x])/(105*Sqrt[a*x])

Rule 16

Int[(u_.)*(v_)^(m_.)*((b_)*(v_))^(n_), x_Symbol] :> Dist[1/b^m, Int[u*(b*v)^(m + n), x], x] /; FreeQ[{b, n}, x
] && IntegerQ[m]

Rule 37

Int[((a_.) + (b_.)*(x_))^(m_.)*((c_.) + (d_.)*(x_))^(n_), x_Symbol] :> Simp[((a + b*x)^(m + 1)*(c + d*x)^(n +
1))/((b*c - a*d)*(m + 1)), x] /; FreeQ[{a, b, c, d, m, n}, x] && NeQ[b*c - a*d, 0] && EqQ[m + n + 2, 0] && NeQ
[m, -1]

Rule 45

Int[((a_.) + (b_.)*(x_))^(m_)*((c_.) + (d_.)*(x_))^(n_), x_Symbol] :> Simp[((a + b*x)^(m + 1)*(c + d*x)^(n + 1
))/((b*c - a*d)*(m + 1)), x] - Dist[(d*Simplify[m + n + 2])/((b*c - a*d)*(m + 1)), Int[(a + b*x)^Simplify[m +
1]*(c + d*x)^n, x], x] /; FreeQ[{a, b, c, d, m, n}, x] && NeQ[b*c - a*d, 0] && ILtQ[Simplify[m + n + 2], 0] &&
 NeQ[m, -1] &&  !(LtQ[m, -1] && LtQ[n, -1] && (EqQ[a, 0] || (NeQ[c, 0] && LtQ[m - n, 0] && IntegerQ[n]))) && (
SumSimplerQ[m, 1] ||  !SumSimplerQ[n, 1])

Rule 78

Int[((a_.) + (b_.)*(x_))*((c_.) + (d_.)*(x_))^(n_.)*((e_.) + (f_.)*(x_))^(p_.), x_Symbol] :> -Simp[((b*e - a*f
)*(c + d*x)^(n + 1)*(e + f*x)^(p + 1))/(f*(p + 1)*(c*f - d*e)), x] - Dist[(a*d*f*(n + p + 2) - b*(d*e*(n + 1)
+ c*f*(p + 1)))/(f*(p + 1)*(c*f - d*e)), Int[(c + d*x)^n*(e + f*x)^(p + 1), x], x] /; FreeQ[{a, b, c, d, e, f,
 n}, x] && LtQ[p, -1] && ( !LtQ[n, -1] || IntegerQ[p] ||  !(IntegerQ[n] ||  !(EqQ[e, 0] ||  !(EqQ[c, 0] || LtQ
[p, n]))))

Rubi steps

\begin {align*} \int \frac {1+a x}{x^4 \sqrt {a x} \sqrt {1-a x}} \, dx &=a^4 \int \frac {1+a x}{(a x)^{9/2} \sqrt {1-a x}} \, dx\\ &=-\frac {2 a^3 \sqrt {1-a x}}{7 (a x)^{7/2}}+\frac {1}{7} \left (13 a^4\right ) \int \frac {1}{(a x)^{7/2} \sqrt {1-a x}} \, dx\\ &=-\frac {2 a^3 \sqrt {1-a x}}{7 (a x)^{7/2}}-\frac {26 a^3 \sqrt {1-a x}}{35 (a x)^{5/2}}+\frac {1}{35} \left (52 a^4\right ) \int \frac {1}{(a x)^{5/2} \sqrt {1-a x}} \, dx\\ &=-\frac {2 a^3 \sqrt {1-a x}}{7 (a x)^{7/2}}-\frac {26 a^3 \sqrt {1-a x}}{35 (a x)^{5/2}}-\frac {104 a^3 \sqrt {1-a x}}{105 (a x)^{3/2}}+\frac {1}{105} \left (104 a^4\right ) \int \frac {1}{(a x)^{3/2} \sqrt {1-a x}} \, dx\\ &=-\frac {2 a^3 \sqrt {1-a x}}{7 (a x)^{7/2}}-\frac {26 a^3 \sqrt {1-a x}}{35 (a x)^{5/2}}-\frac {104 a^3 \sqrt {1-a x}}{105 (a x)^{3/2}}-\frac {208 a^3 \sqrt {1-a x}}{105 \sqrt {a x}}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]  time = 0.02, size = 45, normalized size = 0.46 \begin {gather*} -\frac {2 \sqrt {-a x (a x-1)} \left (104 a^3 x^3+52 a^2 x^2+39 a x+15\right )}{105 a x^4} \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[(1 + a*x)/(x^4*Sqrt[a*x]*Sqrt[1 - a*x]),x]

[Out]

(-2*Sqrt[-(a*x*(-1 + a*x))]*(15 + 39*a*x + 52*a^2*x^2 + 104*a^3*x^3))/(105*a*x^4)

________________________________________________________________________________________

IntegrateAlgebraic [A]  time = 0.05, size = 72, normalized size = 0.74 \begin {gather*} -\frac {2 a^3 \sqrt {1-a x} \left (\frac {15 (1-a x)^3}{a^3 x^3}+\frac {84 (1-a x)^2}{a^2 x^2}+\frac {175 (1-a x)}{a x}+210\right )}{105 \sqrt {a x}} \end {gather*}

Antiderivative was successfully verified.

[In]

IntegrateAlgebraic[(1 + a*x)/(x^4*Sqrt[a*x]*Sqrt[1 - a*x]),x]

[Out]

(-2*a^3*Sqrt[1 - a*x]*(210 + (175*(1 - a*x))/(a*x) + (84*(1 - a*x)^2)/(a^2*x^2) + (15*(1 - a*x)^3)/(a^3*x^3)))
/(105*Sqrt[a*x])

________________________________________________________________________________________

fricas [A]  time = 0.83, size = 43, normalized size = 0.44 \begin {gather*} -\frac {2 \, {\left (104 \, a^{3} x^{3} + 52 \, a^{2} x^{2} + 39 \, a x + 15\right )} \sqrt {a x} \sqrt {-a x + 1}}{105 \, a x^{4}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a*x+1)/x^4/(a*x)^(1/2)/(-a*x+1)^(1/2),x, algorithm="fricas")

[Out]

-2/105*(104*a^3*x^3 + 52*a^2*x^2 + 39*a*x + 15)*sqrt(a*x)*sqrt(-a*x + 1)/(a*x^4)

________________________________________________________________________________________

giac [B]  time = 1.41, size = 175, normalized size = 1.80 \begin {gather*} -\frac {\frac {15 \, a^{4} {\left (\sqrt {-a x + 1} - 1\right )}^{7}}{\left (a x\right )^{\frac {7}{2}}} + \frac {231 \, a^{4} {\left (\sqrt {-a x + 1} - 1\right )}^{5}}{\left (a x\right )^{\frac {5}{2}}} + \frac {1435 \, a^{4} {\left (\sqrt {-a x + 1} - 1\right )}^{3}}{\left (a x\right )^{\frac {3}{2}}} + \frac {7875 \, a^{4} {\left (\sqrt {-a x + 1} - 1\right )}}{\sqrt {a x}} - \frac {{\left (15 \, a^{4} + \frac {231 \, a^{3} {\left (\sqrt {-a x + 1} - 1\right )}^{2}}{x} + \frac {1435 \, a^{2} {\left (\sqrt {-a x + 1} - 1\right )}^{4}}{x^{2}} + \frac {7875 \, a {\left (\sqrt {-a x + 1} - 1\right )}^{6}}{x^{3}}\right )} \left (a x\right )^{\frac {7}{2}}}{{\left (\sqrt {-a x + 1} - 1\right )}^{7}}}{6720 \, a} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a*x+1)/x^4/(a*x)^(1/2)/(-a*x+1)^(1/2),x, algorithm="giac")

[Out]

-1/6720*(15*a^4*(sqrt(-a*x + 1) - 1)^7/(a*x)^(7/2) + 231*a^4*(sqrt(-a*x + 1) - 1)^5/(a*x)^(5/2) + 1435*a^4*(sq
rt(-a*x + 1) - 1)^3/(a*x)^(3/2) + 7875*a^4*(sqrt(-a*x + 1) - 1)/sqrt(a*x) - (15*a^4 + 231*a^3*(sqrt(-a*x + 1)
- 1)^2/x + 1435*a^2*(sqrt(-a*x + 1) - 1)^4/x^2 + 7875*a*(sqrt(-a*x + 1) - 1)^6/x^3)*(a*x)^(7/2)/(sqrt(-a*x + 1
) - 1)^7)/a

________________________________________________________________________________________

maple [A]  time = 0.01, size = 41, normalized size = 0.42 \begin {gather*} -\frac {2 \left (104 a^{3} x^{3}+52 a^{2} x^{2}+39 a x +15\right ) \sqrt {-a x +1}}{105 \sqrt {a x}\, x^{3}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((a*x+1)/x^4/(a*x)^(1/2)/(-a*x+1)^(1/2),x)

[Out]

-2/105*(104*a^3*x^3+52*a^2*x^2+39*a*x+15)/x^3/(a*x)^(1/2)*(-a*x+1)^(1/2)

________________________________________________________________________________________

maxima [A]  time = 0.97, size = 84, normalized size = 0.87 \begin {gather*} -\frac {208 \, \sqrt {-a^{2} x^{2} + a x} a^{2}}{105 \, x} - \frac {104 \, \sqrt {-a^{2} x^{2} + a x} a}{105 \, x^{2}} - \frac {26 \, \sqrt {-a^{2} x^{2} + a x}}{35 \, x^{3}} - \frac {2 \, \sqrt {-a^{2} x^{2} + a x}}{7 \, a x^{4}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a*x+1)/x^4/(a*x)^(1/2)/(-a*x+1)^(1/2),x, algorithm="maxima")

[Out]

-208/105*sqrt(-a^2*x^2 + a*x)*a^2/x - 104/105*sqrt(-a^2*x^2 + a*x)*a/x^2 - 26/35*sqrt(-a^2*x^2 + a*x)/x^3 - 2/
7*sqrt(-a^2*x^2 + a*x)/(a*x^4)

________________________________________________________________________________________

mupad [B]  time = 2.77, size = 40, normalized size = 0.41 \begin {gather*} -\frac {\sqrt {1-a\,x}\,\left (\frac {208\,a^3\,x^3}{105}+\frac {104\,a^2\,x^2}{105}+\frac {26\,a\,x}{35}+\frac {2}{7}\right )}{x^3\,\sqrt {a\,x}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((a*x + 1)/(x^4*(a*x)^(1/2)*(1 - a*x)^(1/2)),x)

[Out]

-((1 - a*x)^(1/2)*((26*a*x)/35 + (104*a^2*x^2)/105 + (208*a^3*x^3)/105 + 2/7))/(x^3*(a*x)^(1/2))

________________________________________________________________________________________

sympy [C]  time = 23.15, size = 274, normalized size = 2.82 \begin {gather*} a \left (\begin {cases} - \frac {16 a^{2} \sqrt {-1 + \frac {1}{a x}}}{15} - \frac {8 a \sqrt {-1 + \frac {1}{a x}}}{15 x} - \frac {2 \sqrt {-1 + \frac {1}{a x}}}{5 x^{2}} & \text {for}\: \frac {1}{\left |{a x}\right |} > 1 \\- \frac {16 i a^{2} \sqrt {1 - \frac {1}{a x}}}{15} - \frac {8 i a \sqrt {1 - \frac {1}{a x}}}{15 x} - \frac {2 i \sqrt {1 - \frac {1}{a x}}}{5 x^{2}} & \text {otherwise} \end {cases}\right ) + \begin {cases} - \frac {32 a^{3} \sqrt {-1 + \frac {1}{a x}}}{35} - \frac {16 a^{2} \sqrt {-1 + \frac {1}{a x}}}{35 x} - \frac {12 a \sqrt {-1 + \frac {1}{a x}}}{35 x^{2}} - \frac {2 \sqrt {-1 + \frac {1}{a x}}}{7 x^{3}} & \text {for}\: \frac {1}{\left |{a x}\right |} > 1 \\- \frac {32 i a^{3} \sqrt {1 - \frac {1}{a x}}}{35} - \frac {16 i a^{2} \sqrt {1 - \frac {1}{a x}}}{35 x} - \frac {12 i a \sqrt {1 - \frac {1}{a x}}}{35 x^{2}} - \frac {2 i \sqrt {1 - \frac {1}{a x}}}{7 x^{3}} & \text {otherwise} \end {cases} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a*x+1)/x**4/(a*x)**(1/2)/(-a*x+1)**(1/2),x)

[Out]

a*Piecewise((-16*a**2*sqrt(-1 + 1/(a*x))/15 - 8*a*sqrt(-1 + 1/(a*x))/(15*x) - 2*sqrt(-1 + 1/(a*x))/(5*x**2), 1
/Abs(a*x) > 1), (-16*I*a**2*sqrt(1 - 1/(a*x))/15 - 8*I*a*sqrt(1 - 1/(a*x))/(15*x) - 2*I*sqrt(1 - 1/(a*x))/(5*x
**2), True)) + Piecewise((-32*a**3*sqrt(-1 + 1/(a*x))/35 - 16*a**2*sqrt(-1 + 1/(a*x))/(35*x) - 12*a*sqrt(-1 +
1/(a*x))/(35*x**2) - 2*sqrt(-1 + 1/(a*x))/(7*x**3), 1/Abs(a*x) > 1), (-32*I*a**3*sqrt(1 - 1/(a*x))/35 - 16*I*a
**2*sqrt(1 - 1/(a*x))/(35*x) - 12*I*a*sqrt(1 - 1/(a*x))/(35*x**2) - 2*I*sqrt(1 - 1/(a*x))/(7*x**3), True))

________________________________________________________________________________________